package  
{
	import org.flixel.*;
	public class SplashPlayerUI extends FlxSprite
	{
		
		private var player:SplashPlayer;
		
		public function SplashPlayerUI(x:Number,y:Number,pPlayer:SplashPlayer) 
		{
			this.x = x;
			this.y = y;
			player = pPlayer;
			
			var background:FlxSprite = new FlxSprite(x, y);
			background.makeGraphic(100, 10, 0xff000000);
			Registry.groupUI.add(background);
			
			this.x += 2;
			this.y += 2;
			makeGraphic(96, 6, 0xffffff00);
			Registry.groupUI.add(this);
		}
		
		override public function update():void 
		{
			super.update();
			(player.sprayMeter / player.sprayMaxMeter) 
			
		}
	}
}